﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopSellerAuthorize")]
    public class TopSellerAuthorize : BaseObject
    {
        //begin
        public TopSellerAuthorize()
        {}
        public TopSellerAuthorize(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        [Association("TopSellerAuthorizeItemCats", typeof(TopItemCat)), Aggregated]
        public XPCollection<TopItemCat> ItemCats
        {
            get
            {
                return GetCollection<TopItemCat>("ItemCats");
            }
        }
        [Association("TopSellerAuthorizeBrands", typeof(TopBrand)), Aggregated]
        public XPCollection<TopBrand> Brands
        {
            get
            {
                return GetCollection<TopBrand>("Brands");
            }
        }
        //end
    }
}
